package com.wynne.ptldemo.samples;

import com.wynne.ptldemo.enums.FSMEvent;
import org.squirrelframework.foundation.fsm.annotation.StateMachineParameters;
import org.squirrelframework.foundation.fsm.impl.AbstractUntypedStateMachine;

@StateMachineParameters(stateType = String.class, eventType = FSMEvent.class, contextType = Integer.class)
public class StateMachineSample extends AbstractUntypedStateMachine {
    public void fromAToB(String from, String to, FSMEvent event, Integer context) {
        System.out.println("Transition from '" + from + "' to '" + to + "' on event '" + event +
                "' with context '" + context + "'.");
    }

    public void ontoB(String from, String to, FSMEvent event, Integer context) {
        System.out.println("Entry State \'" + to + "\'.");
    }
}
